/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.vrangogym.beans.backing;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.map.DefaultMapModel;
import org.primefaces.model.map.LatLng;
import org.primefaces.model.map.MapModel;
import org.primefaces.model.map.Marker;

/**
 *
 * @author antonmalmquist
 */
@ManagedBean(name = "Contact")
@RequestScoped
public class ContactBackingBean {

    private MapModel mapModel;
    
    /** Creates a new instance of ContactBackingBean */
    public ContactBackingBean() {
    }
    @PostConstruct
    private void init(){
        mapModel = new DefaultMapModel();
        
        LatLng coord = new LatLng(57.57118, 11.78557);
        mapModel.addOverlay(new Marker(coord, "Vrångö gym"));
    }
    
    public MapModel getMapModel(){
        return mapModel;
    }
}
